Part Number Hot Search : 
SC450 6KE40 X25F128S BC847B C6045A SC450 D1750 EMH11
Product Description
Full Text Search
 

To Download 30006 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003
General: info@parallax.com Technical: support@parallax.com Web Site: www.parallax.com Educational: www.stampsinclass.com
Emic Text-To-Speech Module (#30006)
General Description
The Emic Text-to-Speech (TTS) Platform is a modular hardware design for text-to-speech applications. The Emic Platform is a fully integrated module that converts a stream of digital text into a high-quality English-speaking voice. It provides a simple way to speech-enable any embedded application. Requiring a simple 2-wire serial interface and two optional I/O lines for status notification, the Emic Platform can easily be integrated into nearly any new or existing design. The Emic Platform is controlled through a simple set of commands and off-loads most of the computational overhead required for TTS from the host controller. The Emic Platform command set consists of a number of functions for core TTS functionality and abstracts the low-level hardware from the end-user application, making it extremely simple to add TTS capabilities to any product.
Features
Fully-integrated, high-quality speech synthesis on a single module Elegant platform provides for unlimited text-to-speech applications Simple interface to BASIC Stamp(R) and Javelin StampTM
Module Highlights
Serial TTL interface (2-wire, 2400 baud) Requires single +5VDC supply Compact size: 2.0" L x 1.375" W On-board 8 , 300 mW speaker driver Easy-to-use ASCII or hexadecimal command sequences Bi-color LED for visual indication of activity 0.100" pin spacing for easy prototyping and integration -40 C to +85 C operating temperature
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
1
Pin Description
Pin 1 (OEM )
1 2
Pin (SIP)
7 3
Pin Name
VCC BUSY
Type
P O
Function
System power, +5V DC input. Busy notification line. Digital logic HIGH when Emic Platform is in-use (e.g., receiving characters, converting text-to-speech, etc.) or when a system error has occurred. Logic LOW when the Emic Platform is idle and ready to receive new commands or text. The visible LED on the Emic Platform is red when BUSY is HIGH and green when BUSY is LOW. Serial In. TTL-level interface, 2400bps, 8 data bits, no parity, 1 stop bit. Serial Out. TTL-level interface, 2400bps, 8 data bits, no parity, 1 stop bit. System ground. Connect to power supply's ground (GND) terminal. External system reset pin. Active LOW digital input. Bring this pin LOW to reset the Emic Platform. Recommended use is after the host controller power-up or an Emic Platform system error. This pin should be left floating if it is not used. Audio output buffer pin provides a single-ended analog output of the synthesized speech for external amplification. Drives a minimum load of 5k up to a maximum of 1Vp-p. The AC signal is superimposed on approximately 1.2VDC bias and must be capacitively coupled to the load. Differential negative speaker driver output. Designed to drive an 8 speaker up to a maximum of 23.5mW for the OEM version and 300mW for the SIP version. Do NOT connect this pin if using SP+ as singleended output (OEM version only). Differential positive speaker driver output. Designed to drive an 8 speaker up to a maximum of 23.5mW for the OEM version and 300mW for the SIP version. On the OEM version, this pin is biased to approximately 1.2VDC and can be used as a single-ended output if capacitively coupled to the load. Analog input pin for SIP version only. Allows an audio signal to be fed through the Emic Platform to either the AOUT or SP+/SP- pins. The input has a nominal 694mVp-p level. There is no gain control on this signal. The audio signal must be AC coupled to the AIN pin. No signal should be active on the AIN pin when it is not in use, or else the signal may bleed through to the Emic Platform's audio output at undesirable times. This pin should be left floating if it is not implemented.
3 4 5 6
1 2 8, 11 14
SIN SOUT GND /RESET
I O G I
7
10
AOUT (ANA)
O
8
15
SP-
O
9
16
SP+
O
---
9
AIN
I
1. For information only; the OEM version is no longer in production. Note: Type: I = Input, O = Output, I/O = Bidirectional, P = Power, G = Ground NOTE: All unspecified pins should be left floating. They should not be connected at any time. Connecting unspecified pins to any signal, ground, or VCC may result in improper device behavior or cause damage to the device.
2
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
Block Diagram
VCC
/RESET
LDO Regulator
BUSY
Bi-Color LED
DIP Switches
mC
WTS701 Text-to-Speech
AIN AOUT
SIN SOUT
Audio Amplifier
SP+ SP-
Note: The AIN pin is not available on the OEM version.
Functional Description Overview
The Emic Platform is a fully integrated module that converts a stream of digital text into a high-quality Englishspeaking voice. The Emic Platform performs text-to-speech synthesis and host processor communications. The system architecture consists of the following functions: Serial interface to interpret commands and data using a simple command structure and menuing system Text normalization module to pre-process incoming text into pronounceable words Word-to-phoneme translator which converts incoming words into their phonetic representation Phoneme mapping to match incoming phonemes into their corresponding pre-recorded audio sample Volume, pitch, and speed adjustments On-board audio amplifier (300 mW)
The Emic Platform ships with a standard American English-speaking female voice with a San Francisco Bay Area dialect. The Emic Platform is designed to support different languages or voices as they become available.
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
3
Physical Connections
The Emic Platform can be integrated into any design using a minimum of five connections (VCC, GND, SIN, SOUT, and AOUT). Optional status and control pins are also available if desired. Though many configurations are possible, a typical connection diagram to a microprocessor uses eight connections (VCC, GND, SIN, SOUT, BUSY, /RESET, SP-, SP+).
Basic Connection Diagram: Emic Platform with Microprocessor Host Control
5V 5V
VCC SIN SOUT
VCC SP+ SP-
mC
Emic TTS Platform
BUSY /RESET AIN AOUT
GND
GND
Communication Protocol
The Emic Platform is controlled by the host via an easy-to-use, TTL-level, asynchronous, two-wire serial communications interface. The SIN (Serial Input) pin receives data and commands from the host controller to the Emic Platform. The SOUT (Serial Output) pin transmits data and responses to the host controller from the Emic Platform. The Emic Platform can connect directly to any TTL-compatible UART or to an RS232-compatible interface by using an external level shifter. All communication is 8 data bits, no parity, 1 stop bit, non-inverted, least significant bit first (8N1). The baud rate is configured in the Emic Platform firmware for 2400 baud, a standard communications speed supported by the BASIC Stamp microcontroller, the Javelin Stamp microcontroller, and most any other microcontroller or PC. The host controller must initiate all communication. The Emic Platform does not initiate any communication. Refer to the section on Command Structure for a list of available commands.
4
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
Configuration Switches
The two-position DIP switch located on the Emic Platform is used to configure the communications properties of the device to fit a wide range of applications. If SW1 is set to ON, the Emic Platform will accept and respond to commands in an ASCII (printable text) format. If SW1 is set to OFF, the Emic Platform will accept and respond to commands in a hexadecimal format. Refer to the section on Command Structure for details. If SW2 is set to ON, each byte sent to the Emic Platform will be echoed back to the host processor. If SW2 is set to OFF, the Emic Platform will not echo each byte to the host processor and will only transmit the command response (such as "OK", "ERROR", or other information) This switch is useful for applications where the user needs to ensure the data is being properly received by the Emic Platform or to verify that the correct data is being typed, such as when the Emic Platform is hooked up to a PC and simple terminal program.
Control Lines
In addition to the serial communications interface, the Emic Platform has two control lines. The BUSY pin is used by the Emic Platform to notify the host controller that it is busy and cannot accept new commands or data (such as during a text-to-speech conversion). The BUSY pin is set HIGH when the Emic Platform is in use. The BUSY pin is set LOW when the Emic Platform is in the idle state and ready to receive a new command. A visual indication of the state of the Emic Platform is given with the on-board LED (Light Emitting Diode). When BUSY is HIGH, the LED is red. When BUSY is LOW, the LED is green. On initial power-up and during device reset, the on-board LED will be both red and green while the Emic Platform is initializing. The /RESET pin is an active LOW digital input used to "hard reset" the Emic Platform, which reinitializes the module's control firmware and resets the volume, speed, and pitch settings to their default values. This pin should be left floating if it is not used, or else it should remain in a logic HIGH state until a system reset is desired.
Command Structure
The Emic Platform can accept commands in either an ASCII (printable text) or hexadecimal format depending on the configuration DIP switch setting (refer to Configuration Switches section). The hexadecimal format is essentially an abbreviated form of the longer ASCII command structure. Both command formats result in the same operation.
Available Command Set Command
Convert text to speech Set volume Set speed Set pitch Add abbreviation Delete abbreviation List abbreviations Emic version numbers Device soft reset Analog audio input (SIP only) Emic help
ASCII
say=text; volume=n; speed=n; pitch=n; addabbr=abbr,text; delabbr=abbr; listabbr; version; reset; audio; help; or ?;
Hexadecimal
0x00, text, 0xAA 0x01, n, 0xAA 0x02, n, 0xAA 0x03, n, 0xAA 0x04, abbr, 0x2C, text, 0xAA 0x05, abbr, 0xAA 0x06, 0xAA 0x07, 0xAA 0x08, 0xAA 0x09, 0xAA 0xFE, 0xAA
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
5
The Emic Platform has a 128-byte circular receive buffer, meaning that any combination of command and data must be less than 128 bytes in order to be properly handled. If this limit is exceeded, the pointer in the buffer will reset to the beginning and overwrite previously received characters. A single word may have a maximum length of 53 characters. Any words longer than 53 characters will be truncated. The Emic Platform will process the buffer when it receives the termination character. In ASCII mode, the termination character is a ";" (semicolon) or 0x0D byte (carriage return). In hexadecimal mode, it is a 0xAA byte. In order to clear the receive buffer, such as in the case of a typo or error, a single termination character should be sent, depending on the ASCII or hexadecimal mode of the Emic Platform. In ASCII mode, if a valid command is entered and the operation is successful, the Emic Platform will respond with "OK". If an incorrect command or data format is entered or if the operation has failed, the Emic Platform will respond with "ERROR". In hexadecimal mode, if a valid command is entered and the operation is successful, the Emic Platform returns a single 0x55 byte. If an incorrect command or data format is entered or if the operation has failed, the Emic Platform returns a single 0xFF byte.
Convert text to speech:
This command begins the text-to-speech conversion process using the passed text string. The audio will be output on both the single-ended AOUT pin and the differential SP+/SP- speaker driver output. Refer to the sections on Allowable ASCII Characters and Phonetic Alphabet for more details. During this operation, the visible LED will remain RED and the BUSY line will be set HIGH until all passed text has been converted to speech. Once the text-to-speech conversion begins, it will continue until the process is complete. There is no way to interrupt the process, other than pulling the /RESET pin LOW to reinitialize the Emic Platform. When the text-to-speech conversion is complete, the LED will return to GREEN and the BUSY line will be set LOW. Command example: Convert the text "hello" to audible speech
ASCII To Emic Platform From Emic Platform Set volume:
say=hello; OK
Hexadecimal
0x00, 0x68, 0x65, 0x6C, 0x6C, 0x6F, 0xAA 0x55
This command sets the audio output volume of the Emic Platform. A single byte, n, is passed along with the command to specify the desired volume. A digitally controlled attenuator on the Emic Platform provides volume control in 8 steps of 4 dB, referenced to the output. Total volume range is from -28 dB (softest, n = 0) to 0 dB (loudest, n = 7). Default volume is set to -12 dB (n = 4). In addition to the range of decimal numbers, "+" or "-" can also be passed to increment or decrement the current volume by 1 step. This will have no effect if an increment command is sent when the volume is already at the loudest setting or if a decrement command is sent when the volume is already at the softest setting. When the Emic Platform is reset or when power is removed, the volume setting will revert to its default value. Command example: Set volume to n = 3 (-16dB)
ASCII To Emic Platform From Emic Platform
volume=3; OK
Hexadecimal
0x01, 0x33, 0xAA 0x55
6
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
Set speed:
This command sets the speed at which the converted speech is spoken. A single byte, n, is passed along with the command to specify the desired speed. Total speed range is from n = 0 (slowest) to n = 4 (fastest). Default speed is set to n = 2. In addition to the range of decimal numbers, "+" or "-" can also be passed to increment or decrement the current speed by 1 step. This will have no effect if an increment command is sent when the speed is already at the fastest setting or if a decrement command is sent when the speed is already at the slowest. When using concatenative speech synthesis systems such as the Emic Platform, speech speed and pitch are often adjusted together to maintain an audible and understandable output. However, it is not required, and each may be adjusted separately if desired. When the Emic Platform is reset or when power is removed, the speed setting will revert to its default value. Command example: Increment speed setting by one step
ASCII To Emic Platform From Emic Platform Set pitch:
speed=+; OK
Hexadecimal
0x02, 0x2B, 0xAA 0x55
This command sets the pitch of the converted speech. A single byte, n, is passed along with the command to specify the desired pitch. Total pitch range is from n = 0 (lowest) to n = 6 (highest). Default pitch is set to n = 1. In addition to the range of decimal numbers, "+" or "-" can also be passed to increment or decrement the current pitch by 1 step. This will have no effect if an increment command is sent when the pitch is already at the highest setting or if a decrement command is sent when the pitch is already at the lowest. When using concatenative speech synthesis systems such as the Emic Platform, speech speed and pitch are often adjusted together to maintain an audible and understandable output. However, it is not required, and each may be adjusted separately if desired. When the Emic Platform is reset or when power is removed, the pitch setting will revert to its default value. Command example: Decrement pitch setting by one step
ASCII To Emic Platform From Emic Platform Add abbreviation:
pitch=-; OK
Hexadecimal
0x03, 0x2D, 0xAA 0x55
This command adds a user-specified abbreviation to the abbreviation table stored on the Emic Platform. The abbreviation, abbr, and its corresponding full word or sentence, text, are passed along with the command. Once an abbreviation is loaded into the Emic Platform, the full text will replace the abbreviation any time the abbreviation is used during a text-to-speech conversion. If multiple abbreviations are added with the same abbreviation string, the Emic Platform will use the first instance. The expanded text for the abbreviation cannot contain any numerals (such as "Basic Stamp 2"), only alphabetic characters (such as "Basic Stamp Two").
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
7
When an abbreviation is successfully added, the Emic Platform performs a "soft reset", which resets the volume, speed, and pitch settings to their default values. Refer to the section on Abbreviations for details. Command example: Convert SMS/Instant Message abbreviation into understandable word, ":)" into "happy"
ASCII To Emic Platform From Emic Platform Delete abbreviation:
addabbr=:),happy; OK
Hexadecimal
0x04, 0x3A, 0x29, 0x2C, 0x68, 0x61, 0x70, 0x70, 0x79, 0xAA 0x55
This command deletes a user-specified abbreviation from the abbreviation table stored on the Emic Platform. The abbreviation to be deleted, abbr, is passed along with the command. Even if a non-existent abbreviation is passed with the command, the Emic Platform will respond with "OK" or a single 0x55 byte depending on the ASCII or hexadecimal mode of the Emic Platform. After an abbreviation entry is deleted, the entry is removed from the abbreviation table and not used. However, the entry still takes up space in the internal memory of the Emic Platform. When an abbreviation is successfully deleted, the Emic Platform performs a "soft reset", which resets the volume, speed, and pitch settings to their default values. Refer to the section on Abbreviations for details. Command example: Delete the ":)" abbreviation from the abbreviation list
ASCII To Emic Platform From Emic Platform List abbreviations:
delabbr=:); OK
Hexadecimal
0x05, 0x3A, 0x29, 0xAA 0x55
This command returns the valid abbreviation table stored on the Emic Platform. Refer to the section on Abbreviations for details. Example response from the Emic Platform: Abbreviation List = :) happy TTS text to speech If the Emic Platform is in hexadecimal mode, the "Abbreviation List =" header will not be transmitted and a single 0x0A byte will be used to separate all table entries instead of a new line and carriage return. At the end of the table listing or if no abbreviation entries exist, the Emic Platform will respond with "OK" or a single 0x55 byte depending on the ASCII or hexadecimal mode of the Emic Platform.
Emic and WTS701 version numbers:
This command returns the hardware and firmware version numbers of the Emic Platform and the core Winbond WTS701 Single-Chip Text-to-Speech Processor. For diagnostics and troubleshooting only. Example response from the Emic Platform: Emic HWREV = Emic SWREV = WTS701 HWVER WTS701 SWVER 1A 12 = 02 = 68
If the Emic Platform is in hexadecimal mode, the headers will not be transmitted and only the four byte values will be sent. At the end of the version listing, the Emic Platform will respond with "OK" or a single 0x55 byte depending on the ASCII or hexadecimal mode of the Emic Platform.
8
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
Device reset:
This command performs a "soft reset" of the Emic Platform, which resets the volume, speed, and pitch settings to their default values. All abbreviations stored on the device will remain intact. The "Device reset" command is different than using the external /RESET pin, which is a "hard reset" that completely restarts the Emic Platform and reinitializes the module's control firmware. Upon initial power-up of the Emic Platform and when the "Device reset" command is successful, the Emic Platform will respond with "OK" or a single 0x55 byte, depending on the ASCII or hexadecimal mode of the Emic Platform. The visible LED will be both red and green while the Emic Platform is initializing.
Analog audio input:
This command is for the SIP version only and enables the analog audio signal on the AIN pin to be fed through the Emic Platform to either the AOUT or SP+/SP- pins. During this operation, the visible LED will remain RED and the BUSY line will be set HIGH. This command will remain active until the Emic Platform receives a single termination character. In ASCII mode, the termination character is a ";" (semicolon) or 0x0D byte (carriage return). In hexadecimal mode, it is a 0xAA byte. When the command is successful and the feed through is disabled, the Emic Platform will respond with "OK" or a single 0x55 byte, depending on the ASCII or hexadecimal mode of the Emic Platform. The BUSY line will then be set LOW and the visible LED will turn green. No signal should be active on the AIN pin when it is not in use, or else the signal may bleed through to the Emic Platform's audio output at undesirable times. The input has a nominal 694mVp-p level. No on-board gain control is available. The audio signal must be AC coupled to the AIN pin. This pin should be left floating if it is not implemented.
Emic help:
This command prints a table of available commands. The menu will vary slightly between the OEM and SIP versions. Example response from the Emic Platform: Emic Text-to-Speech Platform Copyright (c) 2004 Grand Idea Studio, Inc. (www.grandideastudio.com) Distributed by Parallax, Inc. (www.parallax.com) For support, contact support@parallax.com or call 916-624-8333 Command | ASCII | Hexadecimal ------------------------+-----------------------+-------------------------Convert text to speech | say=text; | $00, text, $AA Set volume (0-7, -, +) | volume=n; | $01, n, $AA Set speed (0-4, -, +) | speed=n; | $02, n, $AA Set pitch (0-6, -, +) | pitch=n; | $03, n, $AA Add abbreviation | addabbr=abbr,text; | $04, abbr, $2C, text, $AA Delete abbreviation | delabbr=abbr; | $05, abbr, $AA List abbreviations | listabbr; | $06, $AA Emic version numbers | version; | $07, $AA Device reset | reset; | $08, $AA Analog audio input | audio; | $09, $AA Emic help (this is it) | help; or ?; | $FE, $AA
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
9
Allowable ASCII Characters
The following table lists the ASCII characters that are accepted and understood by the Emic Platform. Unexpected behavior may occur if the input text contains characters that are not defined in this ASCII table.
Hex
0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F
Symbol
Hex
0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28 0x29 0x2A 0x2B 0x2C 0x2D 0x2E 0x2F 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3A 0x3B 0x3C 0x3D 0x3E 0x3F
Symbol
(space) ! # $ % & ` (apostrophe) ( ) * + , (comma) - (dash) . (period) / (slash) 0 1 2 3 4 5 6 7 8 9 : (colon) = ?
Hex
0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4A 0x4B 0x4C 0x4D 0x4E 0x4F 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5A 0x5B 0x5C 0x5D 0x5E 0x5F
Symbol
@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ (left bracket) \ (backslash) ] (right bracket) _ (underscore)
Hex
0x60 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6A 0x6B 0x6C 0x6D 0x6E 0x6F 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7A 0x7B 0x7C 0x7D 0x7E 0x7F
Symbol
a b c d e f g h i j k l m n o p q r s t u v w x y z
^P (enable phonetic alphabet) ^Q ^S ^U ^V
EOT
Phonetic Alphabet
The Emic Platform uses concatenative speech synthesis to generate its spoken words. The TTS conversion is achieved by processing incoming text into a phonetic representation that is mapped to a corpus of naturally spoken word parts. The Emic Platform uses an intermediate phonetic translation, which represents an alphabet of phonemes and stress for each input word. This feature allows the text sent to the Emic Platform to consist of ASCII characters as well as specific phonemes. This capability offers the flexibility to send words already processed for phonetic representation, achieving the desired pronunciation.
10
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
The following table lists the phoneme symbols that are accepted by the Emic Platform.
Phoneme i I e E @ u U o c a A R O Y W x X
Vowels Hex Value 0x69 0x49 0x65 0x45 0x40 0x75 0x55 0x6F 0x63 0x61 0x41 0x52 0x4F 0x59 0x57 0x78 0x58
Example beat bit bait bet bat boot book boat bought Bob but burr boy buy down about roses
Consonants Phoneme Hex Example Value pet p 0x70 ten t 0x74 kit k 0x6B bet b 0x62 debt d 0x64 get g 0x67 hat h 0x68 fat f 0x66 thing T 0x54 that D 0x44 sat s 0x73 shut S 0x53 vat v 0x76 zoo z 0x7A azure Z 0x5A you y 0x79 wit w 0x77 rent r 0x72 let l 0x6C met m 0x6D net n 0x6E sing G 0x47 church C 0x43 judge J 0x4A butter P 0x50 written Q 0x51
Each phoneme is represented by exactly one character and each vowel is preceded by a pitch symbol (represented by a number 1 or 0). Each word has a single "1" stress which represents the main stress of the word. All other syllables in the word have "0" stress. For example, the phonetic translation of "testing" would be "t1Est0IG". Phonetic strings can be sent directly to the Emic Platform by embedding phoneme strings into the text stream that is desired for conversion. To embed a phoneme string, the string must be preceded by a Control-P character (^P, 0x10) and terminated by a space character (0x20). For example, "The quick ^Pbw1Wn fox." The phonetic alphabet can be used to specify particular pronunciations for greater control. For example, many English words, even common ones, have multiple valid phoneme transcriptions. In some cases, one transcription may sound better than others. Exploring variant phonetic transcriptions can solve many output problems. Developers of TTS applications are often tempted to fix pronunciation problems by using aberrant spellings of words, but phonetic transcriptions should be used instead as they provide a more detailed control.
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
11
Abbreviations
The Emic Platform has support for entering and using custom abbreviations. 2kB of internal Flash memory is reserved specifically for this purpose. The Abbreviations feature of the Emic Platform is used to convert frequently used abbreviations or symbols (such as SMS messages or stock tickers) into an expanded text string. Commands exist on the Emic Platform to add, delete, or list the user-defined abbreviations. Refer to the section on Command Structure for details. Once a user-defined abbreviation is loaded into the Emic Platform, the full text will replace the abbreviation any time the abbreviation is used during a text-to-speech conversion. If multiple abbreviations are added with the same abbreviation string, the Emic Platform will use the first instance. The expanded text for the abbreviation cannot contain any numerals (such as "Basic Stamp 2"), only alphabetic characters (such as "Basic Stamp Two"). When an abbreviation is successfully added or deleted the Emic Platform will soft-reset, which returns the volume, speed, and pitch settings to their default values. The abbreviations remain stored on the Emic Platform after both soft- and hard-resets. After a user-defined abbreviation entry is deleted, the entry is removed from the abbreviation table and not used. However, the entry still takes up space in the Flash memory. The only way to free all memory is to reprogram the Emic Platform control firmware. Contact Parallax technical support for additional details. The Emic Platform also contains a default set of frequently used abbreviations. These abbreviations are casesensitive. The following table lists these built-in abbreviations.
Abbreviation
Sen Rep Jan Feb Mar Apr Jun Jul Aug Sep Sept Oct Nov Dec Mon Tue Wed Thu Fri Sat Sun A.M P.M a.m p.m pm PM PhD Mr Mrs Ms Dr
Expanded Text
Senator Representative January February March April June July August September September October November December Monday Tuesday Wednesday Thursday Friday Saturday Sunday AM PM AM PM PM PM PHD Mister Missus Miz Doctor
Abbreviation
AL AK AZ AR CA Cal Calif DE FL Fla GA IEEE ID IL IN IA KS KY MA MI MS MN MO MT NV NH NM NY NJ NC ND OH
Expanded Text
Alabama Alaska Arizona Arkansas California California California Delaware Florida Florida Georgia I Triple E Idaho Illinois Indiana Iowa Kansas Kentucky Massachusetts Michigan Mississippi Minnesota Missouri Montana Nevada New Hampshire New Mexico New York New Jersey North Carolina North Dakota Ohio
Abbreviation
Bldg asap cc cm mm ft yd yds pt pts qt qts km mi deg cu diam FAX Geog govt min mins hr hrs yr yrs doz Inc KW lb lbs mngr
Expanded Text
Building ASAP CC Centimeters Millimeters Feet Yards Yards Pints Pints Quarts Quarts Kilometers Miles Degrees Cubic Diameter Fax Geography Government Minute Minutes Hour Hours Year Years Dozen Incorporated Kilowatt Pound Pounds Manager
12
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
Jr Esq Pres Prof Sgt Lt Lieut Maj MPH Col Gen Sr St Av Ave Rd Rt Rte Blvd Terr Exwy Expwy Drwy Dept Ct
Junior Esquire President Professor Sargeant Lieutenant Lieutenant Major Miles per hour Colonel General Senior Street Avenue Avenue Road Route Route Boulevard Terrace Expressway Expressway Driveway Department Court
PA RI SC SD TN TX Tex UT VT VA WA WV WI WY N S E W LA SF SJ Ans Q Asst Atty
Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming North South East West Los Angeles San Francisco San Jose Answer Question Assistant Attorney
Nat NASDAQ ok oz Pl rcvd rpm tel tv vs U.S. U.S.A VISA w wrt wk Xmas etc c/o w/o III WYSIWYG THE
National Nasdaq OK Ounces Place Received RPM Telephone TV Versus US USA Veeza With With respect to Week Christmas Etcetra Care of Without The third Whisywig The
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
13
Electrical Characteristics Absolute Maximum Ratings
Condition
Operating Temperature Storage Temperature Supply Voltage (VCC) Ground Voltage (VSS) Voltage on any pin with respect to VSS
Value
-40C to +85C -55C to +125C +4.5V to +5.5V 0V -0.3V to +7.0V
NOTICE: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at those or any other conditions above those indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability.
DC Characteristics
Emic Platform SIP
At VCC = +5.0V and TA = 25C unless otherwise noted
Parameter
Supply Voltage Vcc Rise Time (1) Supply Current, Idle Supply Current, Active Conversion Supply Current, /RESET Low Input LOW voltage (except /RESET) Input LOW voltage (/RESET) Input HIGH voltage (except /RESET) Input HIGH voltage (/RESET) Output LOW voltage Output HIGH voltage BUSY Pin Output Current
Symbol
VCC SVCC IIDLE ICC IMCLR VIL VILRST VIH VIHRST VOL VOH IBUSY
Test Conditions
----------+4.5V <= VCC <= +5.5V --+4.5V <= VCC <= +5.5V --VCC = +4.5V VCC = +4.5V ---
Specification Min. Typ. Max.
4.5 0.05 32.9 38.8 26.5 ----2.0 0.8 * VCC --VCC - 0.7 --5.0 ----73 ----------------5.5 --------0.8 0.2 * VCC ----0.6 --20
Unit
V V/ms mA mA mA V V V V V V mA
Note 1: Rise time to ensure internal reset of the Emic Platform. Failure to meet this specification may result in an unknown start-up state and unintended operation of the Emic Platform.
14
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
Emic Platform OEM
At VCC = +5.0V and TA = 25C unless otherwise noted
Parameter
Supply Voltage Vcc Rise Time Supply Current, Idle Supply Current, Active Conversion Supply Current, /RESET Low Input LOW voltage (except /RESET) Input LOW voltage (/RESET) Input HIGH voltage (except /RESET) Input HIGH voltage (/RESET) Output LOW voltage Output HIGH voltage BUSY Pin Output Current
Symbol
VCC SVCC IIDLE ICC IMCLR VIL VILRST VIH VIHRST VOL VOH IBUSY
Test Conditions
----------+4.5V <= VCC <= +5.5V --+4.5V <= VCC <= +5.5V --VCC = +4.5V VCC = +4.5V ---
Specification Min. Typ. Max.
4.5 0.05 32.4 35.7 23.8 ----2.0 0.8 * VCC --VCC - 0.7 --5.0 ----------------------5.5 --------0.8 0.2 * VCC ----0.6 --20
Unit
V V/ms mA mA mA V V V V V V mA
Note: For information only; the OEM version is no longer in production.
AC Characteristics
At VCC = +5.0V and TA = 25C unless otherwise noted
Parameter
Emic Platform Power-On Time /RESET Pulse Width (LOW) Serial Communication Bit Period (1)
Symbol
TPWR TRST TBIT
Test Conditions
----2400 bits/second
Specification Min. Typ. Max.
--2 --200 --416 -------
Unit
mS uS uS
Note 1: The bit period is determined by an on-board RC oscillator and is temperature sensitive.
Speaker Driver Specifications
Emic Platform SIP Parameter
Power Output
Symbol
POUT
Test Conditions Min.
Differential load @ 8 ---
Specification Typ. Max.
300 ---
Unit
mWRMS
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
15
Emic Platform OEM Parameter
SP+/- Output Load Impedance SP+/- Output Load Capacitance SP+/- Output Bias Voltage Power Output
Symbol
RSPLG CSPLG VSPBIAS POUT
Test Conditions Min.
------Differential load @ 8 8 -------
Specification Typ. Max.
----1.2 23.5 --100 -----
Unit
pF VDC mWRMS
Note 1: For information only; the OEM version is no longer in production.
Analog Output Specifications (AOUT pin)
Parameter
AOUT Maximum Output Swing Minimum Load Impedance Maximum Load Capacitance AOUT Output Bias Voltage
Symbol
VAOUT RL CL VBIAS
Test Conditions Min.
5k load (AC coupled) --------5 -----
Specification Typ. Max.
------1.2 1.0 --100 ---
Unit
V k pF VDC
Timing Waveforms
Emic Platform Power-On Sequence
16
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
Circuit Connections
Use the following circuit for connecting the Emic TTS Module to the BASIC Stamp microcontroller.
For programs that require amplifying the output from FREQOUT and DTMFOUT, use the following filter circuit to provide a clean sine wave to the Ain pin of the Emic TTS:
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
17
BASIC Stamp 2 Application
The following BASIC Stamp 2 (any) program demonstrates the features of the Emic TTS. This program uses the DEBUG window to provide a menu to Emic TTS features. Demonstrations that use FREQOUT and DTMFOUT will require the filter circuit/connections as illustrated on the previous page.
' ========================================================================= ' ' File...... Emic_TTS.BS2 ' Purpose... Demonstrates Features of the Emic TTS Platform ' Author.... Parallax, Inc. (Copyright (c) 2004, All Rights Reserved) ' E-mail.... support@parallax.com ' Started... ' Updated... 19 APR 2004 ' ' {$STAMP BS2} ' {$PBASIC 2.5} ' ' =========================================================================
' ' ' ' ' ' ' ' ' ' '
-----[ Program Description ]--------------------------------------------This program demonstrates the TTS capabilities of the GIS Emic TTS module (SIP version). Before running this demo make sure that both Emic DIP switches are set to OFF (Hex mode of Emic TTS). Adding Abbreviations CAUTION: If you use the AddAbbr command, do so only once. By writing the same abbreviation over and over you are simply consuming flash space on the WTS701 -- flash that cannot be recovered without device reprogramming.
' -----[ Revision History ]------------------------------------------------
' -----[ I/O Definitions ]------------------------------------------------Tx Rx Busy Rst AOut PIN PIN PIN PIN PIN 0 1 2 3 7 ' ' ' ' ' connects to Emic SIn connects to Emic SOut 1 = busy low to reset Emic TTS audio out from Stamp
' -----[ Constants ]-------------------------------------------------------
18
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
#SELECT $STAMP #CASE BS2, BS2E T2400 CON TmAdj CON FrAdj CON #CASE BS2SX T2400 TmAdj FrAdj #CASE BS2P T2400 TmAdj FrAdj #CASE BS2PE T2400 TmAdj FrAdj #ENDSELECT Baud Yes No
396 $100 $100
' x 1.0 (note time adjust) ' x 1.0 (note freq adjust)
CON CON CON
1021 $280 $066
' x 2.5 ' x 0.4
CON CON CON
1021 $3C5 $044
' x 3.77 ' x 0.265
CON CON CON
396 $100 $0AA
' x 0.665
CON CON CON
T2400 1 0
' Emic Commands (Hex Mode) Say Volume Speed Pitch AddAbbr DelAbbr ListAbbr Version Reset Audio PhT Help EOM OK CON CON CON CON CON CON CON CON CON CON CON CON CON CON $00 $01 $02 $03 $04 $05 $06 $07 $08 $09 $10 $FE $AA $55 ' ' ' ' ' ' ' ' ' ' ' ' ' say Engish text set volume, 0 - 7 set speed, 0 - 4 set pitch, 0 - 6 add abbreviation delete abbreviation list abbreviations get version soft reset enable audio in start of phonetic text display help end of message
' "okay" for hex mode
' -----[ Variables ]------------------------------------------------------cmd VAR Byte ' menu command
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
19
response vol spd ptch eePntr char verData
VAR VAR VAR VAR VAR VAR VAR
cmd Nib Nib Nib Word Byte Byte(4)
' user response ' current volume ' current speed ' current pitch ' EEPROM pointer ' character from EE ' version data
' -----[ EEPROM Data ]----------------------------------------------------Demo1 Demo2 UseAbbr Dial Phone DATA DATA DATA DATA DATA Say, Say, Say, Say, Say, "I love BASIC Stamps!", EOM "The time is 12:45", EOM "Your current speed is 65 MPH", EOM "Dialing", EOM "1-916-624-8333", EOM
' -----[ Initialization ]-------------------------------------------------Setup: GOSUB Hard_Reset
' restore defaults
' -----[ Program Code ]---------------------------------------------------Main: DEBUG CLS, "============================", CR, " Emic TTS Demo Menu ", CR, "============================", CR, CR, "[1] Demo 1", CR, "[2] Demo 2", CR, "[A] Abbreviation Demo", CR, "[F] Phonetic demo", CR, "[X] Sound Effects (uses Ain)", CR, CR, "[V] Set Volume (", DEC1 vol, ")", CR, "[S] Set Speed (", DEC1 spd, ")", CR, "[P] Set Pitch (", DEC1 ptch, ")", CR, CR, "[R] Revision data", CR, CR, ">> "
' display options menu
20
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
DEBUGIN cmd LOOKDOWN cmd, ["1122aAfFxXvVsSpPrR"], cmd cmd = cmd / 2 IF (cmd > 8) THEN Main BRANCH cmd, [Play_Msg, Play_Msg, Play_Msg, Ph_Demo, Play_SFX, Set_Volume, Set_Speed, Set_Pitch, Get_Rev] GOTO Main
' ' ' '
get command convert to number allow for upper/lower validate command
' Process Menu command Play_Msg: DEBUG CLS, "Saying: " LOOKUP cmd, [Demo1, Demo2, UseAbbr, UseAbbr], eePntr GOSUB Print_String LOOKUP cmd, [Demo1, Demo2, UseAbbr, UseAbbr], eePntr GOSUB Say_String GOSUB Check_Busy PAUSE 500 GOTO Main
Play_SFX: DEBUG CLS, "Speech and Sound Effects" eePntr = Dial ' say "Dialing..." GOSUB Say_String GOSUB Check_Busy eePntr = Phone ' say phone number GOSUB Say_String GOSUB Check_Busy SEROUT Tx, Baud, [Audio, EOM] ' enable Emic Ain eePntr = Phone GOSUB Dial_Phone ' play DTMF phone number PAUSE 1000 ' ring tone FREQOUT AOut, 2000 */ TmAdj, 440 */ FrAdj, 480 */ FrAdj INPUT AOut ' release SEROUT Tx, Baud, [EOM] GOSUB Check_Busy PAUSE 500 GOTO Main
Ph_Demo: DEBUG CLS, "Standard: 'Parallax'", CR SEROUT Tx, Baud, [Say, "Parallax", EOM]
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
21
GOSUB Check_Busy DEBUG "Phonetic: 'pErAl@ks'", CR SEROUT Tx, Baud, [Say, PhT, "pErAl@ks ", EOM] GOSUB Check_Busy PAUSE 500 GOTO Main
Set_Volume: DEBUG CLS, "Enter Volume (0 - 7): " DEBUGIN DEC1 response vol = response MAX 7 SEROUT TX, Baud, [Volume, DEC1 vol, EOM] GOSUB Wait_OK GOTO Main
' ' ' '
prompt user get single-digit input validate send to Emic
Set_Speed: DEBUG CLS, "Enter Speed (0 - 4): " DEBUGIN DEC1 response spd = response MAX 4 SEROUT Tx, Baud, [Speed, DEC1 spd, EOM] GOSUB Wait_OK GOTO Main
Set_Pitch: DEBUG CLS, "Enter Pitch (0 - 6): " DEBUGIN DEC1 response ptch = response MAX 6 SEROUT Tx, Baud, [Pitch, DEC1 ptch, EOM] GOSUB Wait_OK GOTO Main
Get_Rev: SEROUT Tx, Baud, [Version, EOM] SERIN Rx, Baud, [STR verData\4] DEBUG CLS, "Emic HWVER = ", HEX2 verData(0), CR, "Emic SWVER = ", HEX2 verData(1), CR, "WTS701 HWVER = ", HEX2 verData(2), CR, "WTS701 SWVER = ", HEX2 verData(3) PAUSE 3000 GOTO Main END
22
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
' -----[ Subroutines ]----------------------------------------------------' Reset Emic through serial connection Soft_Reset: GOSUB Check_Busy SEROUT Tx, Baud, [Reset, EOM] GOSUB Wait_OK vol = 4 spd = 2 ptch = 1 RETURN
' wait for busy to release ' send soft reset ' set pgm vars to defaults
' Check status of Emic TTS module ' -- wait until Busy line released by Emic ' -- code as written does not timeout Check_Busy: PAUSE 1 DO WHILE (Busy = Yes) : LOOP RETURN
' allow busy to activate ' wait until not busy
' Wait for okay message ' -- will timeout after 1 second Wait_OK: SERIN Rx, Baud, 1000, TO_Error, [WAIT(OK)] RETURN
' Hard reset ' -- good when comm link is lost Hard_Reset: LOW Rst PAUSE 0 INPUT Rst GOSUB Wait_OK vol = 4 spd = 2 ptch = 1 RETURN ' ' ' ' reset to default values pull reset line low ~100 uS pause let reset float
' set pgm vars to defaults
' Send text string to Emic ' -- put first char of EE string in eePntr
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005
23
Say_String: DO READ eePntr, char SEROUT Tx, Baud, [char] eePntr = eePntr + 1 LOOP UNTIL (char = EOM) RETURN
' ' ' '
get char from EEPROM send it to Emic point to next stop when EOM found
' Print text string in DEBUG window ' -- put first char of EE string in eePntr Print_String: DO READ eePntr, char IF (char >= 32) AND (char < 127) THEN DEBUG char ENDIF eePntr = eePntr + 1 LOOP UNTIL (char = EOM) RETURN
' get char from EEPROM ' print only ASCII chars
' point to next ' stop when EOM found
' Process time-out error TO_Error: DEBUG CLS, "No response from Emic TTS." END
' ruh-roh, Shaggy
' Dials phone string that is saved in DATA statement Dial_Phone: DO READ eePntr, char ' get char from EEPROM IF (char >= "0") AND (char <= "9") THEN ' valid digit DTMFOUT AOut, 200 */ TmAdj, 50, [char - "0"] ENDIF eePntr = eePntr + 1 ' point to next LOOP UNTIL (char = EOM) ' stop when EOM found RETURN
24
Parallax, Inc. * Emic Text-To-Speech Module (#30006) * 02/2005


▲Up To Search▲   

 
Price & Availability of 30006

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X